/* 
 * Change Log:
 *  - 2024-05-23: luozi - adding Circle class
 */

//抽象设计例子 
#include "Point.h"
#include "Line.h" 
#include "Rectangle.h" 
#include "Circle.h"
#include "UI.h"

main(){ 
	UI ui; //用户界面UI对象
	 
	Point p1(1,2),p2(7,8), p3(10, 20);  
	ui.shapeVector.push_back(&p1);	//ui中加入Point对象
	ui.shapeVector.push_back(&p2);
	ui.shapeVector.push_back(&p3);
		
	ui.shapeVector.push_back(new Line(p1,p2));  //加入Line对象
	
	ui.shapeVector.push_back(new Rectangle(p1,5,6)); //加入Rectangle对象
	
	ui.shapeVector.push_back(new Circle(p3, 5));

    ui.show();  //用户界面显示
}
 
